#if !defined(AFX_DLGMODELESS_H__237FBBB4_7E73_4C8E_80F7_DBED5DA96BD8__INCLUDED_)
#define AFX_DLGMODELESS_H__237FBBB4_7E73_4C8E_80F7_DBED5DA96BD8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// dlgmodeless.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgModeless dialog
#define WM_NEWAPPDOCUMENT WM_USER+20
#define WM_OPENAPPDOCUMENT WM_USER+21
#define WM_CLOSEAPPDOCUMENT WM_USER+22
#define WM_NEWPART WM_USER+23
#define WM_SAVEAPPDOCUMENT WM_USER+24
#define WM_ACTIVEAPPDOCUMENT WM_USER+25

#include "Resource.h"
class CDlgModeless : public CDialog
{
// Construction
public:
	CDlgModeless(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgModeless)
	enum { IDD = IDD_MODELESS_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgModeless)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgModeless)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg LRESULT OnOpenAppDocment(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnNewAppDocment(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnCloseAppCocment(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnNewPart(WPARAM wParam, LPARAM);
	afx_msg LRESULT OnSaveAppDocument(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnActiveAppCocument(WPARAM wParam, LPARAM lParam);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

CDlgModeless& GetModelessDialog();
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGMODELESS_H__237FBBB4_7E73_4C8E_80F7_DBED5DA96BD8__INCLUDED_)
